Skip to content

Commit

Permalink
Bye2022 함수로 크리스마스 트리를 그리자
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrib committed Dec 23, 2022
1 parent 5f9b62d commit c077a8a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
38 changes: 38 additions & 0 deletions nvim/config/set-bye2022.vim
@@ -0,0 +1,38 @@
"** bye2022

function! Bye2022()
Startify
let l:msg = [
\ " Bye2022",
\ " 🌟" ,
\ " ***",
\ " *****",
\ " *******",
\ " *********",
\ " ***********",
\ " *************",
\ " ***************",
\ " *****************",
\ " *******************",
\ " *********************",
\ " ***********************",
\ " NeoVim ",
\ " Lua ",
\ " Vim "
\ ]
lua require('plenary.reload').reload_module('popup')
lua vim.popup = require('popup')

lua function _G.popup_2022(text)
\ vim.popup.create(text, {
\ line = 3,
\ col = 30,
\ minwidth = 20,
\ highlight = 'PopupColor1',
\ border = {},
\ time = 2500,
\ })
\ end
call v:lua.popup_2022(l:msg)
endfunction

6 changes: 2 additions & 4 deletions nvim/init.vim
Expand Up @@ -109,6 +109,8 @@ call plug#begin('~/.vim/plugged')
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
PlugFile 'set-telescope.vim'
Plug 'nvim-lua/popup.nvim'
PlugFile 'set-bye2022.vim'

Plug 'laher/fuzzymenu.vim'
PlugFile 'set-fuzzymenu.vim'
Expand Down Expand Up @@ -444,10 +446,6 @@ for include_file in uniq(sort(globpath(&rtp, 'vim-include/*.vim', 0, 1)))
execute "source " . include_file
endfor

function! Bye2022()
echom "Bye 2022"
endfunction

augroup vimcon_2022_12_16
au VimEnter * call Bye2022()
augroup END
Expand Down

0 comments on commit c077a8a

Please sign in to comment.